<template>
    <div>
        <h3>内容1</h3>
        <button @click="go">发送数据</button>
    </div>

</template>
<script>
import Event from '../utils/eventBus'
export default{
    methods:{
        go(){
            //Event.$emit('demo1','demo1的数据')
        }
    },
    destroyed(){
        Event.$emit('demo1','demo1的数据')
    }
}
</script>